Accessing Parameters from Scripts
VectorScript provides a well-defined mechanism for directly accessing values in parameter records within plug-in scripts. This mechanism, known as parameter referencing, allows parameter values to be easily retrieved for use with scripts.
The generalized syntax for parameter references is as follows:
P<name of parameter>
Parameter names should contain underscores representing any embedded spaces in the parameter name. For example, a dimension parameter named Space Width would be referenced in a script as:
PSPACE_WIDTH
Parameter references can be used to assign values to other identifiers in a script. Supported identifiers include variable, array, array element, and structure member identifiers. For example, assigning the value in the parameter to a variable would be defined as:
sp_width:= PSPACE_WIDTH;
Parameter references can also be used like constants in expressions or function arguments. For example, valid uses of Space Width parameter would include:
totalWidth:= 5 * PSPACE_WIDTH;
CalculateTotal(PSPACE_WIDTH,2);
Parameter references should always be treated as constant values. Parameter references do not accept value assignments, and parameter reference values cannot be modified.

Using VectorScript Plug-ins : Plug-in Parameter Types : Accessing Parameters from Scripts

Nemetschek NA
Phone: 410.290.5114
Fax: 410.290.8050